package org.eweb4j.config.bean;

import org.eweb4j.util.xml.tag.XmlTag;
import org.eweb4j.util.xml.tag.XmlTagType;

/**
 * EWeb4J用来存取配置信息的bean
 * 
 * @author cfuture.aw
 * @since v1.a.0
 * 
 */
public class ConfigBean {
	@XmlTag("0")
	private String reload;
	@XmlTag(type = XmlTagType.classType) 
	private Properties properties;
	@XmlTag(type = XmlTagType.classType)
	private ConfigIOC ioc;
	@XmlTag(type = XmlTagType.classType)
	private ConfigORM orm;
	@XmlTag(type = XmlTagType.classType)
	private ConfigMVC mvc;

	// @XmlTag(type = XmlTagType.attriType,
	// value = "org.eweb4j.config.bean.ConfigBean")
	// private String xmlBean = this.getClass().getName();

	public Properties getProperties() {
		return properties;
	}

	@Override
	public String toString() {
		return "ConfigBean [reload=" + reload + ", properties=" + properties
				+ ", ioc=" + ioc + ", orm=" + orm + ", mvc=" + mvc + "]";
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	public String getReload() {
		return reload;
	}

	public void setReload(String reload) {
		this.reload = reload;
	}

	public ConfigIOC getIoc() {
		return ioc;
	}

	public void setIoc(ConfigIOC ioc) {
		this.ioc = ioc;
	}

	public ConfigORM getOrm() {
		return orm;
	}

	public void setOrm(ConfigORM orm) {
		this.orm = orm;
	}

	public ConfigMVC getMvc() {
		return mvc;
	}

	public void setMvc(ConfigMVC mvc) {
		this.mvc = mvc;
	}
	//
	// public String getXmlBean() {
	// return xmlBean;
	// }
	//
	// public void setXmlBean(String xmlBean) {
	// this.xmlBean = xmlBean;
	// }
}
